import com.yundou.www.wrpc.core.build.CilentBuilder;

import com.yundou.www.wrpc.core.context.RpcClientContext;
import com.yundou.www.wrpc.core.face.UserService;


import java.util.List;

/**
 * @author wangweiwei
 * @since 2021/7/22
 */
public class UserDemo2 {

    public static void main(String[] args) {
        new CilentBuilder().loadServer("com.yundou.www.wrpc.core");

        UserService clientInstance = RpcClientContext.getClientInstance(UserService.class);

//        List<String> allUserName = clientInstance.getAllUserName();
//        System.out.println(allUserName);
//
//        clientInstance.saveUser("莫小南");

        clientInstance.saveUserId("陈权" ,8L);
    }
}
